FROM openjdk:8
ENV TZ=Asia/Shanghai
RUN ln -snf /usr/share/zoneinfo/$TZ /etc/localtime && echo $TZ > /etc/timezone
ENV LANG C.UTF-8
ENV JAVA_OPTS="-Xms500m -Xmx800m -XX:PermSize=128M -XX:MaxPermSize=256M "
VOLUME /tmp
ADD *.jar app.jar
ENTRYPOINT [ "java", "-Djava.security.egd=file:/dev/./urandom", "-jar", "/app.jar" ]

